package gff.model.dao;

import gff.vo.LoginVO;

import java.sql.SQLException;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.ibatis.sqlmap.client.SqlMapException;

public class LoginDAOImp extends SqlMapClientDaoSupport implements LoginDAO {

	

	public LoginVO getLogin(LoginVO login) throws SqlMapException, SQLException{
		
			try {

				return  (LoginVO) getSqlMapClient().queryForObject(
						"ADMON_LOGIN.getLogin", login);
			} catch (Exception e) {
				logger.error("Error al obtener getLogin" + e.getMessage());
			}

			return null;
	}
}
